package com.nycreativity.elecreativity.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.nycreativity.elecreativity.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * <p>
 *
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-03-11
 */
class Favorite(
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    var id: Long? = null,

    /**
     * 用户id
     */
    var userId: Long? = null,

    /**
     * 商品sku_id
     */
    var skuId: Long? = null
) : BaseEntity() {

    override fun toString(): String {
        return "Favorite{" +
                "id=" + id +
                ", userId=" + userId +
                ", skuId=" + skuId +
                ", ${super.toString()}}"
    }
}
